var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.dispose();
            cm.npc_ChangeController(1540446, "oid=32863", 944, 18, 1);
            cm.setPartner(1, 1540765, 80001594, 0);
            cm.setPartner(1, 1540766, 80001595, 0);
            cm.setPartner(1, 1540767, 80001596, 0);
            cm.addPopupSay(1540503, 3000, "咳, 我们是天才, 队长!", "Voice3.img/BlackHeaven/3_3/1");
            cm.addPopupSay(1540502, 2000, "你明明什么都没做啊, 德皮. ", "Voice3.img/BlackHeaven/3_3/2");
            cm.addPopupSay(1540504, 1000, "好像能通过那电缆爬到上方. ", "");
            cm.useItem(2023418);
            cm.useItem(2023419);
            cm.useItem(2023420)
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};